// 获取登录验证码
export const getLoginCode = (data) => uni.$u.http.get("/api/captcha", data)

// 登录用户信息
export const getUserInfo = (data) => uni.$u.http.get("/api/auth/user_info", data)

// 登录
export const userLogin = (params, config = {}) => uni.$u.http.post("/api/user_login", params, config)

// 登出
export const userLogout = (params) => uni.$u.http.post("/api/auth/logout", params)

// 获取复制模版
export const getTemplate = (params) => uni.$u.http.post("/api/subject/template", params)

// 用量统计
export const userStatistics = (params) => uni.$u.http.post("/api/subject/statistics", params)

// 专题用量统计
export const usageStatistics = (params) => uni.$u.http.post("/api/subject/usage_statistics", params)

// 关联账号列表
export const linkAccount = (params) => uni.$u.http.post("/api/auth/link_account", params)

// 设置查询账号
export const observeAccount = (params) => uni.$u.http.post("/api/auth/observe_account", params)
